package com.bean;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="commentsMessage")
public class CommentsMessage {

	@Id
	private String id;
	
	//private String objId1;
	
	private ObjectId objId;
	private String createDate;
	
	private String content;
	
	private String table;
	
	private User users;

	private String isZan;
	
	private int zanNum2;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public User getUsers() {
		return users;
	}

	public void setUsers(User users) {
		this.users = users;
	}

	public CommentsMessage(String objId1, String createDate, String content,
			String table, User users) {
		super();
		this.objId = new ObjectId(objId1);
		this.createDate = createDate;
		this.content = content;
		this.table = table;
		this.users = users;
	}

	public CommentsMessage() {
		super();
	}

	public String getIsZan() {
		return isZan;
	}

	public void setIsZan(String isZan) {
		this.isZan = isZan;
	}

	public int getZanNum2() {
		return zanNum2;
	}

	public void setZanNum2(int zanNum2) {
		this.zanNum2 = zanNum2;
	}

	public ObjectId getObjId() {
		return objId;
	}

	public void setObjId(ObjectId objId) {
		this.objId = objId;
	}
	
}
